package com.blink.optimize.apis.literal;

import org.junit.jupiter.api.Test;

/**
 * <ClassName>TestLiteral</ClassName>
 * <Description></Description>
 *
 * @Author liuxianzhao
 * @Date 2018年01月06日 18:39
 */
public class TestLiteral {
    @Test
    public void testLiteral() {
        //二进制
        System.out.println(0b001001);
        System.out.println(0B001110);
        //八进制
        System.out.println(011);
        System.out.println(016);
        //十六进制
        System.out.println(0x9);
        System.out.println(0XE);
    }

    @Test
    public void testBinaryLiteral() {
        System.out.println(0b001001);
        System.out.println(0B001110);
        System.out.println(1_500_500);
        System.out.println(5_6.3_4);
        System.out.println(8_9_3_1);

        int a = 120_120_120;
        System.out.println(a);
    }
}
